
#include "Student.h"
#include "Student+ScoreDisplayAddition.h"

int main() {
  // objc中强弱引用约等于 cpp中的智能指针。
  @autoreleasepool {
    NSString* str = @"Hello World!";
    // [str NSStringDrawing];
    Student* student = [Student new];
    [student setGraduated: YES];
    [student setScore: 100];
    [student assignUid];

    // [student setDefaultName];
    // [student setFirstName: @"一龙"];
    // [student setLastName: @"董"];
    // [student setUid: @"set uid"]; ///< 只读属性
    NSLog(@"height = %d, weight = %d", [student measureHeight], [student measureWeight]);
    NSLog(@"%@", [student uid]);
    NSLog(@"student isGraduated = %@", student.isGraduated ? @"Yes" : @"No");
    NSLog(@"%@", [student nameAndScoreString]);
  }
}